package com.ashin.mq.config;

import com.ashin.common.RabbitMQConfig;
import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class TopicRabbitConfig {


    @Bean
    public TopicExchange rabbitmqDemoTopicExchange() {
        //Direct交换机
        return new TopicExchange(RabbitMQConfig.EXCHANGE_TOPIC_TEST, true, false);
    }
}
